<?php 
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
if(isset($_SESSION['mang'])){
	$sl=count($_SESSION['mang']);
	if(isset($_REQUEST['vitri']) && isset($_REQUEST['giatri'])){
		$_SESSION['mang'][$_REQUEST['vitri']]=$_REQUEST['giatri'];
		echo count($_SESSION['mang']);	
	}	
}
?>